package com.flyco.modules.job.order;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.flyco.config.XxlJobConfig;
import com.flyco.modules.oms.entity.OmsOrder;
import com.flyco.modules.oms.entity.OmsOrderSetting;
import com.flyco.modules.oms.service.IOmsOrderService;
import com.flyco.modules.oms.service.IOmsOrderSettingService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import groovy.util.logging.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

@Component
@Slf4j
public class OrderSettingJob {

    private Logger logger = LoggerFactory.getLogger(OrderSettingJob.class);

    @Autowired
    private IOmsOrderSettingService omsOrderSettingService;



    //@XxlJob("omsOrderSettingJob")
    public ReturnT<String> channelPriceJobHandler(String param) throws Exception {

        logger.info("omsOrderSettingJob 开始运行");

        omsOrderSettingService.orderReceiveConfirm();

        logger.info("omsOrderSettingJob 运行结束");
        return ReturnT.SUCCESS;
    }
}
